public class Rectangle {
    double length;
    double wide;

    public Rectangle(double length, double wide) {
        this.length = length;
        this.wide = wide;
    }
    public  double getPerimeter(double length,double wide){
        return 2*(length+wide);
    }

    public  double getArea(double length,double wide){
        return length*wide;
    }

}
 class Cuboid{
     double length;
     double wide;
     double height;

     public Cuboid(double length, double wide, double height) {
         this.length = length;
         this.wide = wide;
         this.height = height;
     }

     public  double getVolume(double length, double wide, double height){
         return length*wide*height;
     }
 }

